package zhr.chapter5.eight;

public class Student {
    private String name;

    public Student() {
    }

    public Student(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void calArea(IArea area){
        System.out.println("Area of "+area.getType()+" is "+area.getArea());
    }
}
